//
//  NavigationBarButtonItem.h
//  CustomNavigationBar
//
//  Created by zkingsoft on 15/12/29.
//  Copyright (c) 2015年 zkingsoft. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>

typedef enum {
    NavBarButtonItemTypeDefault = 0,
    NavBarButtonItemTypeBack = 1
}NavBarButtonItemType;// 定义一个枚举 来表示 item 是返回按钮 还是 普通按钮



@interface NavigationBarButtonItem : NSObject

@property (nonatomic,assign) NavBarButtonItemType   itemType;
@property (nonatomic,strong) UIButton               *button;
@property (nonatomic,strong) NSString               *title;
@property (nonatomic,strong) NSString               *image;
@property (nonatomic,strong) UIFont                 *font;
@property (nonatomic,strong) UIColor                *normalColor;
@property (nonatomic,strong) UIColor                *selectedColor;
@property (nonatomic,weak)   id                     target;
@property (nonatomic,assign) SEL                    selector;
@property (nonatomic,assign) BOOL                   heighlightedWhileSwitch;



- (id)initWithType:(NavBarButtonItemType)itemType;

+ (id)defauleItemWithTarget:(id)target
                     action:(SEL)action
                      title:(NSString *)title;
+ (id)defauleItemWithTarget:(id)target
                     action:(SEL)action
                      image:(NSString *)image;
+ (id)backItemWithTarget:(id)target
                  action:(SEL)action
                   title:(NSString *)title;

- (void)setTarget:(id)target withAction:(SEL)action;

@end






